-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement type checker #164
Conversation
(match a with
| Nf_pi (n, n0) ->
let a0 = (n, n0) in looks unnecessary. how is it generated? |
@HuStmpHrrr
|
What do you mean by curry it? I mean, it is the returned value, not arguments. |
instead of |
@HuStmpHrrr With that, it has
so I guess it doesn't help in terms of the extracted code. However, it gives a better in-coq implementation, so I pushed it. |
Wtf. This still sucks. I really wish something better can be done here. |
I don't see an easy way to resolve that unless we just directly inline the function even in Coq. |
if you are fine with it I think it's worth it to get rid of the glitch like this. |
You mean inlining the function? I don't think that's very optimal in terms of development, but the function is used once anyway... Ok, let's inline that. |
Yeah, I think that's fine for this. I'm surprised the extraction doesn't take care of it. |
ef41831
to
3109579
Compare
Updated. |
The extracted code for
type_check
/type_infer
(underExtrOcamlBasic
andExtrOcamlNatBigInt
) isand for
type_check_closed
,